[XEN] Do not spin at the end of machine_crash_kexec(). If there was no crash
authorIan Campbell <ian.campbell@xensource.com>
Thu, 30 Nov 2006 16:32:24 +0000 (16:32 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Thu, 30 Nov 2006 16:32:24 +0000 (16:32 +0000)
image then we should return to the caller who will either restart the machine
as normal or continue on as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen/common/kexec.c

index ae3f0e6c70b7ea5eb2f1dbeeb4aa20191b3daf03..2c4c079314893f0e4689e0f89a4232a868b62c75 100644 (file)
@@ -119,8 +119,6 @@ void machine_crash_kexec(void)
         image = &kexec_image[KEXEC_IMAGE_CRASH_BASE + pos];
         machine_kexec(image); /* Does not return */
     }
-
-    while (1); /* No image available - just spin */
 }
 
 static void do_crashdump_trigger(unsigned char key)